class CreatePosts < ActiveRecord::Migration[5.1]
  def change
    create_table :posts do |t|
      t.integer :order_num
      t.integer :plate_id, default: 1
      t.integer :status, default: 0
      t.string :title, :content, :cover_src, :cover_link, :file_name
      t.timestamps
    end
  end
end
